package com.zwr.sheller.customer.mapper;

import com.zwr.sheller.core.pojo.Goods;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: 18032
 * @Date: 14:53 2022/1/12
 */
public interface GoodsMapper extends Mapper<Goods> {

    List<Map<String,Object>> selectByShelfTime(Long storeId);

    /**
     * 该店铺折扣最高的商品列表
     * @param storeId
     * @return
     */
    List<Map<String,Object>> selectByDiscount(Long storeId);

    /**
     * 该店铺价格排序:商品的所有sku中最低的价格拿出来
     * @param storeId
     * @return
     */
    List<Map<String,Object>> selectByPrice(Long storeId);


    /**
     * 该商铺
     * @param storeId
     * @param choose
     * @param lowPrice
     * @param highPrice
     * @return
     */
    List<Map<String,Object>> selectByOption(Long storeId, Integer choose, Double lowPrice , Double highPrice);

    /**
     * 根据分类查询商品信息
     * @param itemId
     * @param rankId
     * @param orderByPrice
     * @return
     */
    List<Map<String,Object>> selectGoodsByType(Long itemId,Long rankId,Boolean orderByPrice,Long choose,Double lowPrice,Double highPrice);
}
